package cn.yunhe.action;

import cn.yunhe.pojo.District;
import cn.yunhe.service.DistrictService;
import cn.yunhe.util.BaseAction;

import java.util.ArrayList;
import java.util.List;

public class DistrictAction extends BaseAction {
    private District district;
    private String target;
    private List<District> districtList=new ArrayList<>();

    DistrictService districtService=new DistrictService();

    public String districtList(){
        District district1=new District();
        districtList=districtService.districtList(district1);
        return SUCCESS;
    }

    public District getDistrict() {
        return district;
    }

    public void setDistrict(District district) {
        this.district = district;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public List<District> getDistrictList() {
        return districtList;
    }

    public void setDistrictList(List<District> districtList) {
        this.districtList = districtList;
    }
}
